#include "newoperationdialog.h"
#include "ui_newoperationdialog.h"

NewOperationDialog::NewOperationDialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::NewOperationDialog)
{
    ui->setupUi(this);

    InitOperationName();
}

NewOperationDialog::~NewOperationDialog()
{
    delete ui;
}

void NewOperationDialog::InitOperationName(){
    ui->comboBoxOperationName->addItem(QStringLiteral("Delay"));
    ui->comboBoxOperationName->addItem(QStringLiteral("Snap"));
    ui->comboBoxOperationName->addItem(QStringLiteral("WordopControlLED"));
    ui->comboBoxOperationName->addItem(QStringLiteral("MoveJoint"));
    ui->comboBoxOperationName->addItem(QStringLiteral("Recognize"));
    ui->comboBoxOperationName->setCurrentIndex(0);

    m_strOperationName = QStringLiteral("Delay");
}

void NewOperationDialog::on_comboBoxOperationName_currentIndexChanged(int index)
{
    m_strOperationName = ui->comboBoxOperationName->currentText();
}

